<?php
/**
 * Created by JetBrains PhpStorm.
 * Author: Dinh Thi
 * Date: 6/28/13
 * Time: 12:09 PM
 * To change this template use File | Settings | File Templates.
 */

class ZSmtItem {

    private $id;

    private $name;

    private $posts;

    private $authors;

    private $threads;

    public function __construct($type, $posts = 0, $authors = 0, $threads = 0) {
        $this->id       = $type;
        $this->name     = $type;
        $this->posts    = $posts;
        $this->authors  = $authors;
        $this->threads  = $threads;
    }

    /**
     * @return id int
     */
    public function getId(){
        return $this->id;
    }

    /**
     * @return String
     */
    public function getName(){
        return ZSmtCollection::$smt[$this->id];
    }
    /**
     * @return String
     */
    public function getNumberOfPosts(){
        return $this->posts;
    }

    /**
     * @return String
     */
    public function getNumberOfAuthors(){
        return $this->authors;
    }

    /**
     * @return String
     */
    public function getNumberOfThreads(){
        return $this->threads;
    }
}